Ext.define('DCApp.view.ccsync.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.ccsynclist',
    
    requires: [
        'DCApp.controller.ListController',
        'DCApp.view.ccsync.ListModel',
        'DCApp.view.GridFilters'
    ],

    controller: 'list',
    plugins: ['gfilters'],
    viewModel: {
        type: 'ccsynclist'
    },
    bind: {
        store: '{objs}'
    },
    header:false,

    selType: 'checkboxmodel',
    
    tbar: [],
    
	
	listeners: {
        itemdblclick: 'onDblClick'
    },
    
    columns: [
            {
                text     : '编号',
                dataIndex: 'id',
                filter: 'number'
            },
            {
                text     : '描述',
                dataIndex: 'description',
                sortable:false,
                filter: 'string'
            },
            {
                text     : '实体类',
                dataIndex: 'en',
                filter: 'string'
            },
            {
                text     : 'IP',
                dataIndex: 'ip',
                filter: 'string'
            },
            {
                text     : '类ID',
                dataIndex: 'keyval',
                filter: 'string'
            },
            {
                text     : '活动',
                dataIndex: 'oper',
                filter: 'string'
            },
            {
            	text     : '创建时间',
                xtype: 'datecolumn',
                dataIndex: 'tmCreate',
                formatter: 'date("m/d/Y")',
                filter: true
            },            
            {
                text     : '操作人',
                dataIndex: 'userid',
                filter: 'string'
            }
        ],
    initComponent: function(){
    	this.callParent();
    }
 });
